package cn.yilongquan.mapper;

import cn.yilongquan.user.domain.rolePermission;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RolePermissionMapper {
    // 删除角色原有的权限关联
    void deleteByRoleId(@Param("roleId") Long roleId);
    
    // 批量插入新的权限关联
    void batchInsert(@Param("list") List<rolePermission> rolePermissions);

    // 已有的 countroleandpermissionByroleID 方法...
    Long countroleandpermissionByroleID(@Param("roleId") Long roleId);

}